#ifndef  _TYPEDEF_H
#define  _TYPEDEF_H

#include <stdio.h>
typedef unsigned char  BYTE;
typedef unsigned short WORD;
typedef unsigned long  DWORD;
typedef enum
{
	BYFALSE=0,
	BYTRUE=1
} bool;

typedef unsigned short INT;
#define BOOL    bool
#define TRUE	1
#define FALSE	0
#define true	1
#define false	0

#define MAKEWORD(low,hi)  ((WORD)(low + ((hi) << 8)))

#define LOBYTE(wValue)    ((BYTE)(wValue))
#define HIBYTE(wValue)    ((BYTE)((wValue) >> 8))

#define MAKEDWORD(low,hi) ((DWORD)(low + ((hi) << 16)))

#define LOWORD(dwValue)   ((WORD)(dwValue))
#define HIWORD(dwValue)   ((WORD)((dwValue) >> 16))



#endif